//
//  NIBaseViewModel.h
//  AIWAYS
//
//  Created by Marx on 2018/7/17.
//  Copyright © 2018年 wlq. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


#pragma mark - 共通定义
/**
 请求状态
 
 - NIRequestStatusLoading: 请求中
 - NIRequestStatusSuccess: 请求成功
 - NIRequestStatusFailed: 请求失败
 */
typedef NS_ENUM(NSInteger, NIRequestStatus) {
    NIRequestStatusLoading,
    NIRequestStatusSuccess,
    NIRequestStatusFailed,
};

#pragma mark - 业务定义

//类型 1:登录 2:注册 3:密码重置4:变更绑定手机5:绑定手机 6：忘记密码 
typedef NS_ENUM(NSInteger, NIGetSmsCodeType) {
    NIGetSmsCodeTypeLogin = 1,
    NIGetSmsCodeTypeRegist = 2,
    NIGetSmsCodeTypeSettingPwd = 3,
    NIGetSmsCodeTypeChangePhone = 4,
    NIGetSmsCodeTypeBindingPhone = 5,
    NIGetSmsCodeTypeResetPwd = 6,
};


@interface NIBaseViewModel : NSObject

-(UIImage *)getAvatarImageWithUrl:(NSString *)url userId:(NSString *)userId;


@end
